﻿using PropertyChanged;
using sys_Print.DataAsset;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sys_Print.ViewModel
{
    [AddINotifyPropertyChangedInterface]
    public class DataDictionaryViewModel
    {
        [DoNotNotify]
        private readonly IFreeSql _fsql;

        public List<DataDictionary> DataList { get; set; }
        public DataDictionaryViewModel() 
        {
            // 获取配置好的FreeSql实例
            _fsql = App.FsqlDB;

            DataList = _fsql.Select<DataDictionary>().OrderByDescending(a=>a.OptionName).OrderBy(a=> a.Priority).ToList();
        }

    }
}
